﻿@model LoginDataWithUsername
@{
    ViewBag.Title = "התחברות אנשי דפוס";
}
@section headElements{
    <script src="@Url.Content("~/Scripts/Login.js")" type="text/javascript"></script>
}
<ul id="Breadcrumbs">
    <li>@ViewBag.Title</li>
</ul>
<div class="highlightedPanel">
    @using (Html.BeginForm("Login", "Users", FormMethod.Post, new { id = "frmLogin" }))
    {
        <div class="fieldRow">
            <div class="label">
                שם משתמש</div>
            <div class="value">
                @Html.TextBoxFor(m => m.Username, new { @class = "ltr" })
                @Html.ValidationMessageFor(m => m.Username)
            </div>
        </div>
        <div class="fieldRow">
            <div class="label">
                סיסמה</div>
            <div class="value">
                @Html.PasswordFor(m => m.Password, new { @class = "ltr" })
                @Html.ValidationMessageFor(m => m.Password)</div>
        </div>
        <div class="fieldRow">
            <div class="label">
                @Html.CheckBox("RememberMe")
                @Html.Label("RememberMe", "זכור אותי")</div>
            <div class="value">
                <input type="submit" value="התחבר" class="button" /></div>
        </div>
        <div class="clear">
        </div>
    }
</div>
<div class="clear topSpace"></div>
<br /><br /><br />
<div class="highlightedPanel">
    @using (Html.BeginForm("EditorLogin", "Users", FormMethod.Post, new { id = "frmEditorLogin" }))
    {
        <div class="title">
            התחברות כעורך אלבום/מקטע
        </div>
        <div>
            אלבום
            @Html.DropDownList("AlbumId", (ViewBag.AlbumsList as SelectList))
            מקטע לעריכה
            <select id="AlbumSections">
                <option value="">--כל האלבום--</option>
            </select>
            @Html.Hidden("AlbumSectionId")
            סיסמה
            @Html.PasswordFor(m => m.Password, new { @class = "ltr" })
            @Html.ValidationMessageFor(m => m.Password)
        </div>
        <input type="submit" value="התחבר" class="button" />
        <span id="loginFailed" class="formErrorMessage">סיסמה שגויה</span>
    }
</div>
